package com.example.zk2.room

import android.app.Application
import androidx.room.Room

class AppDbUtils {
    companion object{
        private lateinit var appDb: AppDb

        fun init(application: Application){
            appDb = Room.databaseBuilder(application,AppDb::class.java,"zk2.db")
                .allowMainThreadQueries()
                .build()
        }

        fun getDb() = appDb
    }
}